import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/member/mpMenu/getList",
    method: "GET",
    params,
  });
}

export function changeMenu(data) {
  return request({
    url: "/member/mpMenu/change",
    method: "post",
    data,
  });
}
export function addMenu(data) {
  return request({
    url: "/member/mpMenu/add",
    method: "post",
    data,
  });
}
export function del(id) {
  return request({
    url: "/member/mpMenu/del",
    method: "post",
    data: { id },
  });
}

export function publish(data) {
  return request({
    url: "/member/mpMenu/publishMenu",
    method: "post",
    data,
  });
}
export function saveMoreMenu(data) {
  return request({
    url: "/member/mpMenu/saveMoreMenu",
    method: "post",
    data,
  });
}
